package com.um.jdy.common.device.code;

import com.um.springboot.starter.utils.EnumUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 邓南辉
 * 日期 2023/2/14
 * 版权所有 广州优匠科技有限公司
 */
@Getter
@AllArgsConstructor
public enum DeviceCode implements EnumUtil.ErrorEnum {

    unlockFail(14101, "释放失败！"),
    Unsupported(14102, "设备不支持！"),
    TriggerFailure(14103, "触发消息失败！"),
    ClearCacheFailure(14104, "清理缓存失败！"),
    ResetFailure(14105, "重置失败！"),
    UpgradeFailure(14106, "升级固件失败！"),
    EditConfigFailure(14107, "修改配置失败！"),
    GetConfigFailure(14108, "获取配置失败！"),
    DeviceCodeExist(14109, "设备编码已存在！"),
    DeviceCodeNotExist(14110, "设备设备码不存在!"),
    SaveForTimezoneError(14111, "保存失败，设置设备时区错误！"),
    SendForTimezoneError(14112, "下发失败，设置设备时区错误！"),
    OrderNotExist(14113, "充电订单不存在！"),
    UnsupportedRefund(14114, "本充电订单不支持退款！"),
    RechargeOrderNotExit(14115, "充值订单不存在！"),
    RefundFailure(14116, "退款失败！"),
    UserIsAgent(14117, "保存失败，该小程序用户已绑定其他代理商！"),
    UserIsSaleman(14118, "保存失败，该小程序用户已绑定业务员！"),
    UserIsMerchant(14119, "保存失败，该小程序用户已绑定商户！"),
    UserIsOther(14120, "保存失败，该小程序用户已绑定其他商户！"),
    PileNotExist(14121, "设备不存在！"),
    NoAppointment(14122, "仅支持取消预约中设备！"),
    CancelReserveFailure(14123, "取消预约失败！"),
    SendCardFailure(14124, "下发离线卡失败！"),
    RemoveCardFailure(14125, "删除已下发离线卡失败！"),
    ChangeAfterCharged(14126, "正在充电中,充电完成后会自动修改状态！"),
    RequiredRestart(14128, "操作失败: 设备需要重启！"),
    DeviceOffline(14129, "设备不在线！"),
    OrderCompleted(14130, "订单已完成！"),
    RemoteStopFailure(14131, "远程停止充电失败！"),
    GunExist(14132, "端口已存在！"),
    OverGunNumber(14133, "端口数量已满！"),
    BindUserNotExist(14134, "绑定用户不存在！"),
    BindCardNotExist(14135, "卡不存在！"),
    RemoveChargeCardFailure(14136, "删除失败，卡正在充电中！"),
    RemoveSendCardFailure(14137, "删除失败，卡已下发至设备！"),
    CardIdTagExist(14138, "卡号已存在！"),

    NoDeviceCode(14139, "导入文件无桩号数据！"),
    ImportNoData(14140, "导入excel无数据！"),

    NoDevice(14141, "设备不存在!"),
    NoPile(14142, "设备不存在!"),
    Unavailable(14143, "当前设备不可用!"),
    Booked(14144, "设备已预约中，不能使用!"),
    Charging(14145, "设备正在充电中，不能使用!"),
    Offline(14146, "抱歉，设备已离线，无法连接!"),
    UninsertedGun(14147, "请插枪再开启充电!"),
    NoStation(14148, "网点不存在!"),
    DeviceHasBind(17059,"设备已绑定！"),
    PriceUnusual(14149, "充电站电价价格时间设置异常!"),
    Unfinished(14150, "充电未完成，不支持支付!"),
    Placing(14151, "充电占位中，请拔枪后再支付！"),
    timezoneUnusual(14152, "保存失败，设置设备时区错误!"),
    ArrangedStation(14153, "设备已下发站场!"),
    ArrangedMerchant(14154, "设备已下发运营商!"),
    ArrangedAgent(14155, "设备已下发代理商!"),
    NoGun(14156, "端口不存在!"),
    PileNoRunning(14157, "设备未投放运营!"),
    ChargingNoMoveAndRecycle(14158, "设备正在充电中，不能转移或回收!"),
    ReserveNoMoveAndRecycle(14159, "设备正在预约中，不能转移或回收!"),
    NoChargingProfile(14160, "充电配置不存在!"),
    NoCurrentStationPrice(14161, "当前电价不存在!"),
    PileIsBinded(14162, "设备已绑定其它运营商!"),
    NoFee(14163, "收费方案不存在!"),
    PileUnSend(14164, "设备未下发无法注册！"),
    PileImeiExist(14165, "设备IMEI码已存在！"),
    DeviceNotEnabled(14166,"设备未启用！"),
    PortOccupyByOrder(14167,"端口被其他订单占用！"),
    NoRentDevice(14168,"没有可租用设备！"),
    PileNoNeedTransfer(14169, "当前设备无需转移"),
    NoSupportDifferent(14170,"不支持不同设备类型同时出库到网点！"),
    DeviceCodeRequired(14171, "设备码不能为空！"),
    UpdateTimeFailure(14173, "同步时间失败！"),
    UpdatePriceModelFailure(14174, "同步价格失败！"),
    RestartFailure(14175, "重启设置失败！"),
    ChargingNoExchangeImei(14176, "设备正在充电中，不能更换!"),
    PlaceNoExchangeImei(14177, "设备正在占位中，不能更换!"),
    PlaceNoMoveAndRecycle(14178, "设备正在占位中，不能转移或回收!"),
    TestForPowerOn(14179, "设备请重新上电后再测试!"),
    BetterySNExist(14180, "电池号码已存在！"),
    RecycleFailure(14181,"回收设备失败！"),
    TransferFailure(14182,"转移设备失败！"),
    ExchangeFailure(14183,"更换运营商失败！"),
    BreakAndResetStart(14184,"请将设备断电再通电！"),
    SendCmdFailure(14185, "发送指令失败！"),
    ;


    private Integer code;
    private String msg;


}